﻿namespace API
{
    /// <summary>
    /// 统一返回数据的格式
    /// </summary>
    public class Result
    {
        public Result()
        {
            this.Time = DateTime.Now;

            this.Author = "444274941@qq.com";
        }
        /// <summary>
        /// 请求的状态码
        /// 200: 请求成功
        /// 404: 请求资源无法找到
        /// 500: 程序报错
        /// </summary>
        public int Code { get; set; }

        /// <summary>
        /// 返回的数据
        /// </summary>
        public object? Data { get; set; }

        /// <summary>
        /// 责任人
        /// </summary>
        public string? Author { get; set; }

        /// <summary>
        /// 请求的时间
        /// </summary>
        public DateTime Time { get; set; }
    }
}
